package com.example.JcGQS.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName Invoice
 * @Description 发票表
 *
 *  @author 末日
 * @date 2023/11/21
 */
@Data
public class Invoice {
    /**
     * 发票id
     */
    @TableId(value = "invoice_id",type = IdType.AUTO)
    private Integer invoiceId;

    /**
     * 发票编号
     */
    @TableField(value = "invoice_order")
    private String invoiceOrder;
    /**
     * 发票单号
     */
    @TableField(value = "invoice_number")
    private String invoiceNumber;
    /**
     * 税率
     */
    @TableField(value = "invoices_rate")
    private String invoicesRate;
    /**
     * 税金
     */
    @TableField(value = "invoices_taxes")
    private String invoicesTaxes;
    /**
     * 发票种类
     */
    @TableField(value = "invoices_type")
    private String invoicesType;
    /**
     * 采购的发票的状态
     */
    @TableField(value = "invoice_state")
    private String invoiceState;
    /**
     * 创建时间
     */
    @TableField(value = "invoice_create_time",fill = FieldFill.INSERT)
    private LocalDateTime dataCreateTime;
    /**
     * 修改时间
     */
    @TableField(value = "invoice_update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime dataUpdateTime;

}
